﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Mirkuz.TrailCompanion
{
    public partial class fSettings : Form
    {
        public fSettings()
        {
            InitializeComponent();
        }

        private void mnuOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void mnuCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void fSettings_Load(object sender, EventArgs e)
        {
            nmPolling.Value = fMain.settingDataSet1.Settings[0].GPSPolling;
            if (fMain.settingDataSet1.Settings[0].AutosaveEnabled)
                rdEnableAutosave.Checked = true;
            else
                rdDisableAutosave.Checked = true;
        }
    }
}